package gulimall.coupon.feign;

import gulimall.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author HLF
 * @since 2022/5/10 15:00
 */
@Service
@FeignClient(value = "gulimall-product",path = "/product")
public interface ProductFeignService {

    /**
     * 在使用@RequestParam/@PathVariable进行传值时，
     * 一定要注意，需要绑定参数，如@RequestParam(“id”)绑定id，不然会报错
     * @param skuId
     * @return
     */
    /*@GetMapping("/skuinfo/skuPrice")
    R skuPrice(@RequestParam("skuId") Long skuId);*/

}
